package com.hyt;

public class Teacher {
    //属性
    private String tsaName;
    private int teaAge;

    //行为
    public void doTeaching(){
        //调用doXXX方法
        System.out.println("现在开始执行doXXX方法了。。。。。。。。");
        System.out.println("I am teaching");
        System.out.println("现在结束执行doXXX方法了。。。。。。。。");

    }

    public String getTsaName() {
        return tsaName;
    }

    public void setTsaName(String tsaName) {
        this.tsaName = tsaName;
    }

    public int getTeaAge() {
        return teaAge;
    }

    public void setTeaAge(int teaAge) {
        this.teaAge = teaAge;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "tsaName='" + tsaName + '\'' +
                ", teaAge=" + teaAge +
                '}';
    }
}
